#ifndef CrissCrossListener_H
#define CrissCrossListener_H

#include "dispatcher/LaserListener.h"
#include "database/TrackBase.h"
#include "model/MappedRecognizer.impl.h"
#include "crisscross/CrissCross.h"

#include <string>

class CrissCrossListener : public LaserListener {
private:
	MappedRecognizer<std::string> rec;
	std::string expr;
	CrissCross& cc;
public:
	CrissCrossListener(std::string baseDir, CrissCross& cc);
	void isInterval(const LaserEvent& e);
	void isTrack(const LaserEvent& e);
};

#endif
